package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author LF
 * @date 2021/4/16 - 11:00
 */
@Mapper
@Repository
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    /**
     * 初始化表结构
     */
    void createTable();

    /**
     * 分页
     * @param page
     * @return
     */
    IPage<UserInfo> selectPage(Page page);
}
